import request from '@/utils/request'

const searchApi = {
	// 全局搜索
	globalSearch: async (params) => {
		return await request({
			url: `/app/searchIndex/globalSearch?keyword=${params.keyword}&type=${params.type}`,
			method: 'GET',
		})
	},
}

export default searchApi